package com.example.medicalretrieval.pojo;

import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

@Entity
public class PdfItem {
    @PrimaryKey(autoGenerate = true)
    private int id;
    private String title;
    private String abstractContent;
    private String authors;
    private String filePath;
    private String name;


    public PdfItem() {
    }

    @Override
    public String toString() {
        return "PdfItem{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", abstractContent='" + abstractContent + '\'' +
                ", authors='" + authors + '\'' +
                ", filePath='" + filePath + '\'' +
                ", name='" + name + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAbstractContent() {
        return abstractContent;
    }

    public void setAbstractContent(String abstractContent) {
        this.abstractContent = abstractContent;
    }

    public String getAuthors() {
        return authors;
    }

    public void setAuthors(String authors) {
        this.authors = authors;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    @Ignore
    public PdfItem(int id, String title, String abstractContent, String authors, String filePath, String name) {
        this.id = id;
        this.title = title;
        this.abstractContent = abstractContent;
        this.authors = authors;
        this.filePath = filePath;
        this.name = name;
    }
}
